<?php
   /**
    * Create the html for a list footer
    *
    * @param   array  $list  Pagination list data structure.
    *
    * @return  string  HTML for a list start, previous, next,end
    *
    * @since   11.1
    */
    function pagination_list_render($list)
   {
      // Reverse output rendering for right-to-left display.
      $html = '<ul class="post">';
      //$html .= '<li class="pagination-start">' . $list['start']['data'] . '</li>';
      $html .= '<li>' . $list['previous']['data'] . '</li>';

      /*foreach ($list['pages'] as $page)
      {
         $html .= '<li>' . $page['data'] . '</li>';
      }*/

     $html .= '<li class="r">' . $list['next']['data'] . '</li>';
      //$html .= '<li class="pagination-end">' . $list['end']['data'] . '</li>';
      $html .= '</ul>';

      return $html;
   }
   function pagination_item_inactive(&$item)
	{
		$app = JFactory::getApplication();
		if ($app->isAdmin())
		{
			return "<span>" . $item->text . "</span>";
		}
		else
		{
			return "<a href=\"#\" class=\"active-page\">" . $item->text . "</a>";
		}
	}
	function pagination_item_active(&$item)
	{
		$app = JFactory::getApplication();
		if ($app->isAdmin())
		{
			if ($item->base > 0)
			{
				return "<a title=\"" . $item->text . "\" onclick=\"document.adminForm." . $this->prefix . "limitstart.value=" . $item->base
					. "; Joomla.submitform();return false;\">" . $item->text . "</a>";
			}
			else
			{
				return "<a title=\"" . $item->text . "\" onclick=\"document.adminForm." . $this->prefix
					. "limitstart.value=0; Joomla.submitform();return false;\">" . $item->text . "</a>";
			}
		}
		else
		{
			return "<a title=\"" . $item->text . "\" href=\"" . $item->link . "\" >" . $item->text . "</a>";
		}
	}

?>